package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import jakarta.servlet.http.HttpServletRequest;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    // 员工注册
    void register(EmployeeDTO employeeDTO);
    // 员工分页查询
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    void updateStatus(Integer status, Long id);


    void update(EmployeeDTO employeeDTO);


    Employee getById(Long id);

    void editPassword(PasswordEditDTO passwordEditDTO, HttpServletRequest request);
}
